package com.filebackup.struts.actions;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class ToJsonAction extends ActionSupport {

	private User user;

	public String execute() throws Exception {

		user = new User();
		user.setPassword("pass1");
		user.setUsername("name1");

		return Action.SUCCESS;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getUser() {
		return this.user;
	}
}
